package com.cskaoyan.mall.service.mall;

import com.cskaoyan.mall.dao.mall.MallUserDao;
import com.cskaoyan.mall.dao.mall.MallUserDaoImpl;
import com.cskaoyan.mall.model.bo.admin.UpdateUserDataBO;
import com.cskaoyan.mall.model.bo.mall.SignUpBO;
import com.cskaoyan.mall.model.bo.mall.UpdatePwdBO;
import com.cskaoyan.mall.model.bo.mall.UserLoginBO;
import com.cskaoyan.mall.model.vo.mall.GetTokenVO;
import com.cskaoyan.mall.model.vo.mall.UserDataVO;

public class MallUserServiceImpl implements MallUserService {
    MallUserDao mallUserDao = new MallUserDaoImpl();
    @Override
    public int signup(SignUpBO signUpBO) {
        return mallUserDao.signup(signUpBO);
    }

    @Override
    public int login(UserLoginBO loginBO) {
        return mallUserDao.login(loginBO);
    }

    @Override
    public UserDataVO data(String token) {
        return mallUserDao.data(token);
    }

    @Override
    public int updatePwd(UpdatePwdBO pwd) {
        return mallUserDao.updatePwd(pwd);
    }

    @Override
    public int updateUserData(UpdateUserDataBO data) {
        return mallUserDao.updateUserData(data);
    }

    @Override
    public int logoutClient(GetTokenVO data) {
        return mallUserDao.logoutClient(data);
    }
}
